var a= 10;
function fun(){
    console.log(a);//undefined
    var a = 5;
    var b  = 7;//局部变量
}
fun();
console.log(a);// 10
console.log(b);// b is not defined
